package com.jackeysun.common_kit

import android.content.Context
import android.util.AttributeSet
import android.widget.TextView
import androidx.core.view.ViewCompat
import com.jackeysun.widget.CircleDrawable

/**
 *   Created by sunxunchao on 2021/10/29.
 */
class CircleButton @JvmOverloads constructor(
    context: Context,
    attrs: AttributeSet? = null,
    defStyleAttr: Int = 0
) : TextView(context, attrs, defStyleAttr) {

    private val progressDrawable = CircleDrawable(isSolid = false)

    init {
        ViewCompat.setBackground(this, progressDrawable)
    }
}